
<!DOCTYPE html>
<html>
<head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /><title>
	炮弹走私
</title><script language="javascript" type="text/javascript"> 
            var applicationPath = "";
        </script>
<meta http-equiv="content-language" content="zh-CN" />
<link rel="icon" type="image/x-icon" href="http://www.wxmaiyatang.cn/favicon.ico" media="screen" />
<link rel="shortcut icon" type="image/x-icon" href="http://www.wxmaiyatang.cn/favicon.ico" media="screen" />
<meta name="author" content="Hishop development team" />
<meta name="GENERATOR" content="微分销" />
<meta name="renderer" content="webkit" /><link rel="stylesheet" href="http://apps.bdimg.com/libs/bootstrap/3.3.4/css/bootstrap.min.css" />
<script type="text/javascript" src="../admin/js/browserdetect.js"></script>
<script src="http://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js" type="text/javascript"></script>
<script src="http://apps.bdimg.com/libs/bootstrap/3.3.4/js/bootstrap.min.js" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" href="../admin/css/bootstrap-datetimepicker.min.css" />
<script type="text/javascript" src="../admin/js/bootstrap-datetimepicker.js"></script>
<script type="text/javascript" src="../admin/js/bootstrap-datetimepicker.zh-CN.js"></script>
<script type="text/javascript" src="../admin/js/jquery.formvalidation.js"></script>
<link rel="stylesheet" href="../admin/css/common.css" />
<script src="../admin/js/Framenew.js?3.3.1bk1"></script>
<meta name="keywords" /><meta name="description" />
    <!--[if lt IE 9]>
      <script src="//cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
      <script src="//cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
    
    <style>
    .has-error small{color:#a94442;}
        .contentp p { line-height:25px; }
        .contentp span { color:red; }
</style>
    <script type="text/javascript">
        $(function () {
            $('.selectpreferentialvolume input').change(function () {
                console.log("dd");
                var now = $('.selectpreferentialvolume input:checked').val(),
                    parentElement = $(this).parents('.selectpreferentialvolume');
                $('.manualreleasebox').hide();
                if (parentElement.nextAll('.manualreleasebox').eq(now).get(0)) {
                    $('.manualreleasebox').eq(now).show();
                } else {
                    if (now == 1) {
                        parentElement.nextAll('.manualreleasebox').after('<div class="manualreleasebox boxsize"><span class="title">请指会员微信昵称</span><div class="form-horizontal"><div class="form-group mt10"><label for="inputEmail3" class="col-xs-3 control-label resetSize">微信昵称：</label><div class="col-xs-9"><textarea id="weixinname" class="resetSize inputw250" rows="5" cols="10"></textarea><small>填写单个或多个微信昵称，每个微信昵称占一行</small></div></div></div></div>');
                    } else if (now == 2) {
                        parentElement.nextAll('.manualreleasebox:last-child').after('<div class="manualreleasebox boxsize"><span class="title">请指会员用户名</span><div class="form-horizontal"><div class="form-group mt10"><label for="inputEmail3" class="col-xs-3 control-label resetSize">用户名：</label><div class="col-xs-9"><textarea id="usernamename" class="resetSize inputw250" rows="5" cols="10"></textarea><small>填写单个或多个用户名，每个用户名占一行</small></div></div></div></div>');
                    }
                }
            });

            GetCouponInfo();
            $("[id$='ddlCouponList']").change(function () { GetCouponInfo(); });

            //验证上级店铺名称
            $("#txtStoreName").blur(function () {
                var _this = $(this);
                var value = $(this).val();
                if (value != '')
                {
                    $.ajax({
                        type: 'get',
                        dataType: 'json',
                        data: { "action": "getstroeidbystorename", "storeName": value },
                        url: 'GetMemberGradesHandler.ashx',
                        success: function (data)
                        {
                            if (data.status == 'ok') {
                                $("#txtStoreId").val(data.storeId);
                                $("#storeNameErr").html('');
                                _this.parent().removeClass();
                                _this.parent().addClass("col-xs-9");
                            } else {
                                $("#storeNameErr").html(data.description);
                                $("#txtStoreId").val('');
                                _this.parent().removeClass();
                                _this.parent().addClass("col-xs-9 has-error");
                            }
                        }
                    });
                } else
                {
                    $("#txtStoreId").val('');
                    $("#storeNameErr").html('');
                    _this.parent().removeClass();
                    _this.parent().addClass("col-xs-9");
                }
            });

            $("#btnSend").click(function () {
                var sendType = $(".sendType:checked").val();
                if (sendType == '0') {
                    BeginSend()
                } else if(sendType=='1') {
                    BeginSend1()
                }
                else if (sendType == '2') {
                    BeginSend2()
                }
                
            });

            $("#btnSubmitSend").click(function () {
                var sendType = $(".sendType:checked").val();
                if (sendType == '0') {
                    SubmitSend();
                } else {
                    SubmitSend1();
                }
                
            });
           
        

        });

        function GetCouponInfo() {
            var couponId = $("[id$='ddlCouponList']").val();
            $.ajax({
                type: 'get',
                dataType: 'json',
                data: { "action": "getcouponinfo", "id": couponId },
                url: 'GetMemberGradesHandler.ashx',
                success: function (data) {
                    if (data.Status == 2) {
                        $("#couponCount").html('还剩 ' + data.Count + ' 张');
                        $("#pCouponCount").html(data.Count);
                        $("#pCouponCount1").html(data.Count);
                        $("#couponDate").html('有效期：' + data.BeginTime + ' 到 ' + data.EndTime);
                    }
                }
            });
        }

        function BeginSend()
        {
            var text = $("#storeNameErr").text();
            if (text != '')
            {
                ShowMsg("请输入正确的上级店铺名称", false);
                return;
            }
            //会员等级
            var gradeIds="";
            var checkGrades = $(".memberGradeCheck:checked");
            if (checkGrades.size() == 0)
            {
                gradeIds = "0";
            } else if (checkGrades.size() == $(".memberGradeCheck").size()) {
                gradeIds = "0";
            } else {
                checkGrades.each(function () {
                    gradeIds += $(this).val() + ',';
                });
                gradeIds = gradeIds.substring(0, gradeIds.length - 1);
            }
            checkGrades = undefined;
            //上级店铺
            var referralUserId = $("#txtStoreId").val();
            //注册时间起
            var beginCreateDate = $("#ctl00_ContentPlaceHolder1_ucDateBeginDate_txtDateTimePicker").val();
            //注册时间止
            var endCreateDate = $("#ctl00_ContentPlaceHolder1_ucDateEndDate_txtDateTimePicker").val();
            //新会员、活跃会员、沉睡会员
            var userType='';
            var checkUserType = $(".userTypeClass:checked");
            if (checkUserType.size() == 0)
            {
                userType = "0";
            } else if (checkUserType.size() == $(".userTypeClass").size()) {
                userType = "0";
            } else {
                checkUserType.each(function () { userType+=String($(this).val()) });
            }
            checkUserType = undefined;
            //自定义分组
            var customGroup = '';
            var checkCustomGroup = $(".customGroup:checked");
            if (checkCustomGroup.size() == 0) {
                customGroup = "0";
            } else {
                checkCustomGroup.each(function () {
                    customGroup += $(this).val() + ',';
                });
                customGroup = customGroup.substring(0, customGroup.length - 1);
            }
            checkCustomGroup = undefined;

            $.ajax({
                type: 'get',
                dataType: 'json',
                data: { 'action': 'getsearchusercount', 'gId': gradeIds, 'rId': referralUserId, 'bDate': beginCreateDate, 'eDate': endCreateDate, 'uType': userType, 'cGroup': customGroup },
                url: 'GetMemberGradesHandler.ashx',
                ansy: false,
                success: function (data) {
                    if (data.status == 'ok') {
                        var couponCount = $("#pCouponCount").html();
                        if (Number(couponCount >= data.count)) {
                            $("#pSelectCount").html(data.count);
                            $('#myModal1').modal('toggle').children().css({
                                width: '530px'
                            })
                        } else {
                            $("#pSelectCount1").html(data.count);
                            $('#myModal').modal('toggle').children().css({
                                width: '530px'
                            })
                        }
                    }
                }
            });
        }

        ///确认发放
        function SubmitSend()
        {
            var couponId = $("[id$='ddlCouponList']").val();
            $.ajax({
                type: 'get',
                dataType: 'json',
                data: { "action": "sendcoupontosearchuser", "couponId": couponId },
                url: 'GetMemberGradesHandler.ashx',
                success: function (data) {
                    if (data.status == 'ok') {
                        ShowMsg(data.msg, true);
                        GetCouponInfo();
                    } else {
                        ShowMsg(data.msg, false);
                    }
                }
            });
        }
        //确认发放
        function SubmitSend1() {
            var couponId = $("[id$='ddlCouponList']").val();
            $.ajax({
                type: 'get',
                dataType: 'json',
                data: { "action": "sendcoupontousers", "cId": couponId, "ids": $("#txtUserIds").val() },
                url: 'GetMemberGradesHandler.ashx',
                success: function (data) {
                    if (data.status == 'ok') {
                        ShowMsg(data.msg, true);
                        GetCouponInfo();
                    } else {
                        ShowMsg(data.msg, false);
                    }
                }
            });
        }

        function BeginSend1()
        {
            var text = $("#weixinname").val();
            if (text.indexOf("_")>-1)
            {
                ShowMsg("不能输入带\"_\"线的微信昵称！请使用其它方式发送", false);
                return;
            }
            if (text == '')
            {
                ShowMsg("微信昵称不能为空！", false);
                return;
            }
            text = text.replace(/\n/g, "_");
            $.ajax({
                type: 'post',
                dataType: 'json',
                data: { "nich": text },
                url: 'GetMemberGradesHandler.ashx?action=getuseridbynich',
                ansy:false,
                success: function (data)
                {
                    if (data.status == 'ok')
                    {
                        $("#txtUserIds").val(data.ids);
                        var couponCount = $("#pCouponCount").html();
                        if (Number(couponCount >= data.count)) {
                            $("#pSelectCount").html(data.count);
                            $('#myModal1').modal('toggle').children().css({
                                width: '530px'
                            })
                        } else {
                            $("#pSelectCount1").html(data.count);
                            $('#myModal').modal('toggle').children().css({
                                width: '530px'
                            })
                        }
                    } else
                    {
                        ShowMsg(data.msg, false);
                    }
                }
            });
        }
        function BeginSend2() {
            var text = $("#usernamename").val();
            if (text.indexOf("_") > -1) {
                ShowMsg("不能输入带\"_\"线的会员用户名！请使用其它方式发送", false);
                return;
            }
            if (text == '') {
                ShowMsg("会员用户名不能为空！", false);
                return;
            }
            text = text.replace(/\n/g, "_");
            $.ajax({
                type: 'post',
                dataType: 'json',
                data: { "uname": text },
                url: 'GetMemberGradesHandler.ashx?action=getuseridbyusername',
                ansy: false,
                success: function (data) {
                    if (data.status == 'ok') {
                        $("#txtUserIds").val(data.ids);
                        var couponCount = $("#pCouponCount").html();
                        if (Number(couponCount >= data.count)) {
                            $("#pSelectCount").html(data.count);
                            $('#myModal1').modal('toggle').children().css({
                                width: '530px'
                            })
                        } else {
                            $("#pSelectCount1").html(data.count);
                            $('#myModal').modal('toggle').children().css({
                                width: '530px'
                            })
                        }
                    } else {
                        ShowMsg(data.msg, false);
                    }
                }
            });
        }
        //清除条件
        function clearInput()
        {
            $(".memberGradeCheck").each(function () { $(this).prop("checked", false); });
            $(".userTypeClass").each(function () { $(this).prop("checked", false); });
            $("#ctl00_ContentPlaceHolder1_ucDateBeginDate_txtDateTimePicker").val('');
            $("#ctl00_ContentPlaceHolder1_ucDateEndDate_txtDateTimePicker").val('');
            $("#txtStoreId").val('');
            $("#txtStoreName").val('');
            $("#storeNameErr").html('');
            $("#txtStoreName").parent().removeClass();
            $("#txtStoreName").parent().addClass("col-xs-9");
        }
    </script>
</head>
<body class="theme theme--blue">

    <header class="ui-header navbar-fixed-top">
        <div class="ui-header-inner clearfix">
            <h1 class="ui-header-logo">
                <a href="/admin/" title="管理后台">
                    <span class="version"><i>3.4</i></span>
                </a>
            </h1>
            <nav class="ui-header-nav">
                <ul class="clearfix">
<li class="divide">|</li>
<li mid="m01"><a href="/Admin/Default.aspx?firstPage=1" title="店铺">店铺</a></li>
<li mid="m02"><a href="/Admin/goods/productonsales.aspx?firstPage=1" title="商品">商品</a></li>
<li mid="m03"><a href="/Admin/trade/manageorder.aspx?firstPage=1" title="订单">订单</a></li>
<li class="divide">|</li>
<li mid="m04"><a href="/Admin/member/MemberGaiKuang.aspx?firstPage=1" title="会员">会员</a></li>
<li mid="m05"><a href="/Admin/Fenxiao/DistributorSummary.aspx?firstPage=1" title="分销">分销</a></li>
<li class="divide">|</li>
<li mid="m06"><a href="/Admin/weixin/wxconfig.aspx?firstPage=1" title="微信">微信</a></li>
<li mid="m07"><a href="/Admin/Weibo/timeline.aspx?firstPage=1" title="微博">微博</a></li>
<li mid="m11"><a href="/Admin/AliFuwu/AliFuwuConfig.aspx?firstPage=1" title="服务窗">服务窗</a></li>
<li class="divide">|</li>
<li class=" active" mid="m08"><a href="/Admin/Promotion/CouponsList.aspx?firstPage=1" title="营销">营销</a></li>
<li class="divide">|</li>
<li mid="m09"><a href="/Admin/Settings/Alipay.aspx?firstPage=1" title="设置">设置</a></li>
<li mid="m10"><a href="/Admin/tongji/salereport.aspx?firstPage=1" title="分析统计">分析统计</a></li>
</ul>

            </nav>
            <div class="ui-header-user ">
                <div class="customer-wrap">
                </div>
                <div class="dropdown hover dropdown-right">
                    <a href="javascript:;" class="dropdown-toggle" data-toggle="dropdown">
                        <span class="txt">
                            <span class="ellipsis team_name">炮弹走私</span><span class="dash"> - </span><span>admin</span>
                        </span>
                        <i class="caret"></i>
                    </a>
                    <ul class="dropdown-menu">
                        <li><a href="/admin/Settings/EditManager.aspx?UserID=1"><span class="glyphicon glyphicon-user"></span>个人信息</a></li>
                        <li><a href="/admin/Settings/EditManagerPassword.aspx?UserID=1"><span class="glyphicon glyphicon-list-alt"></span>修改密码</a></li>
                        <li class="divide"></li>
                        <li><a href="/Admin/LoginExit.aspx"><span class="glyphicon glyphicon-indent-right"></span>退出</a></li>
                    </ul>
                </div>
            </div>
        </div>
    </header>
    <div class="container">
        <div class="app">
            <div class="app-inner clearfix">

    <form name="aspnetForm" method="post" action="SendCouponByManager.aspx" id="aspnetForm">
<div>
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwUKLTQwNjkyMTE0Mw9kFgJmD2QWCgIBDxYCHgRUZXh0BYQKPHVsIGNsYXNzPSJjbGVhcmZpeCI+DQo8bGkgY2xhc3M9ImRpdmlkZSI+fDwvbGk+DQo8bGkgbWlkPSJtMDEiPjxhIGhyZWY9Ii9BZG1pbi9EZWZhdWx0LmFzcHg/Zmlyc3RQYWdlPTEiIHRpdGxlPSLlupfpk7oiPuW6l+mTujwvYT48L2xpPg0KPGxpIG1pZD0ibTAyIj48YSBocmVmPSIvQWRtaW4vZ29vZHMvcHJvZHVjdG9uc2FsZXMuYXNweD9maXJzdFBhZ2U9MSIgdGl0bGU9IuWVhuWTgSI+5ZWG5ZOBPC9hPjwvbGk+DQo8bGkgbWlkPSJtMDMiPjxhIGhyZWY9Ii9BZG1pbi90cmFkZS9tYW5hZ2VvcmRlci5hc3B4P2ZpcnN0UGFnZT0xIiB0aXRsZT0i6K6i5Y2VIj7orqLljZU8L2E+PC9saT4NCjxsaSBjbGFzcz0iZGl2aWRlIj58PC9saT4NCjxsaSBtaWQ9Im0wNCI+PGEgaHJlZj0iL0FkbWluL21lbWJlci9NZW1iZXJHYWlLdWFuZy5hc3B4P2ZpcnN0UGFnZT0xIiB0aXRsZT0i5Lya5ZGYIj7kvJrlkZg8L2E+PC9saT4NCjxsaSBtaWQ9Im0wNSI+PGEgaHJlZj0iL0FkbWluL0ZlbnhpYW8vRGlzd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iL0FkbWluL1Byb21vdGlvbi9HYW1lWGluZ1l1bkxpc3RzLmFzcHgiIHRpdGxlPSLlpb3ov5Dnv7vnv7vnnIsiPuWlvei/kOe/u+e/u+ecizwvYT48L2xpPg0KPGxpPjxhIGhyZWY9Ii9BZG1pbi9Qcm9tb3Rpb24vR2FtZURhRnVXZW5MaXN0cy5hc3B4IiB0aXRsZT0i5aSn5a+M57+BIj7lpKflr4znv4E8L2E+PC9saT4NCjxsaT48YSBocmVmPSIvQWRtaW4vUHJvbW90aW9uL0dhbWVHdWFHdWFMZUxpc3RzLmFzcHgiIHRpdGxlPSLliK7liK7kuZAiPuWIruWIruS5kDwvYT48L2xpPg0KPGxpPjxhIGhyZWY9Ii9BZG1pbi9Qcm9tb3Rpb24vUHJpemVMaXN0LmFzcHgiIHRpdGxlPSLlpZblk4Hlj5HotKfnrqHnkIYiPuWlluWTgeWPkei0p+euoeeQhjwvYT48L2xpPg0KPC91bD4NCmRk7WXpgsqhFrMcppUQlFsNLW0CAi8=" />
</div>

<div>

	<input type="hidden" name="__VIEWSTATEGENERATOR" id="__VIEWSTATEGENERATOR" value="047399BC" />
</div>
        <div class="page-header">
            <h2>优惠券手动发放</h2>
        </div>
        <input type="hidden" id="txtUserIds" />
        <div class="form-horizontal manualrelease">
            <div class="form-group">
                <label for="inputEmail3" class="col-xs-2 control-label">选中优惠券：</label>
                <div class="col-xs-10">
                    <select name="ctl00$ContentPlaceHolder1$ddlCouponList" id="ctl00_ContentPlaceHolder1_ddlCouponList" class="form-control inputw250 mb5" style="width: 200px;">

</select>
                    <small id="couponCount"></small>
                    <small id="couponDate"></small>
                </div>
            </div>
            <div class="form-group">
                <label for="inputEmail3" class="col-xs-2 control-label">发放范围：</label>
                <div class="col-xs-10">
                    <div class="mb20 selectpreferentialvolume">
                        <label class="middle mr20">
                            <input type="radio" name="condition" class="sendType" value="0" checked="checked">指定条件发放
                        </label>
                        <label class="middle mr20">
                            <input type="radio" name="condition" class="sendType" value="1">指定微信昵称发放
                        </label>
                        <label class="middle mr20">
                            <input type="radio" name="condition" class="sendType" value="2">指定用户名发放
                        </label>
                    </div>
                    <div class="manualreleasebox">
                        <span class="title">请指定发放条件</span>
                        <div class="form-horizontal">
                            <div class="form-group mt10">
                                <label for="inputEmail3" class="col-xs-3 control-label">会员等级：</label>
                                <div class="col-xs-9">
                                    <div class="setlabel">
                                         <label class="middle mr20"><input type="checkbox" class="memberGradeCheck" value="1">普通会员  </label> <label class="middle mr20"><input type="checkbox" class="memberGradeCheck" value="2">sss  </label> <label class="middle mr20"><input type="checkbox" class="memberGradeCheck" value="3">VIP  </label>
                                    </div>
                                </div>
                            </div>
                            <div class="form-group mt10">
                                <label for="inputEmail3" class="col-xs-3 control-label">会员分组：</label>
                                <div class="col-xs-9">
                                    <div class="setlabel">
                                        <label class="middle mr20">
                                            <input type="checkbox" value="1" class="userTypeClass">新会员
                                        </label>
                                        <label class="middle mr20">
                                            <input type="checkbox" value="2" class="userTypeClass">活跃会员
                                        </label>
                                        <label class="middle mr20">
                                            <input type="checkbox" value="3" class="userTypeClass">沉睡会员
                                        </label>
                                    </div>
                                </div>
                                <div class="col-xs-9">
                                    <div class="setlabel">
                                         <label class="middle mr20"><input type="checkbox" class="customGroup" value="3">超级VIP  </label>
                                    </div>
                                </div>
                            </div>
                            <div class="form-group mt10 ">
                                <label for="inputEmail3" class="col-xs-3 control-label resetSize">上级店铺名称：</label>
                                <div class="col-xs-9">
                                    <input name="txtStoreName" type="text" value="" id="txtStoreName" class="form-control inputw150 resetSize">
                                    <input type="hidden" name="txtStoreId" id="txtStoreId" value="" />
                                    <small id="storeNameErr"></small>
                                </div>
                            </div>
                            <div class="form-group mt10">
                                <label for="inputEmail3" class="col-xs-3 control-label resetSize">注册时间：</label>
                                <div class="col-xs-9">
                                    <div class="form-inline mb5">
                                        <div class="form-group">
                                            <input name="ctl00$ContentPlaceHolder1$ucDateBeginDate$txtDateTimePicker" type="text" id="ctl00_ContentPlaceHolder1_ucDateBeginDate_txtDateTimePicker" class="form-control resetSize inputw150" autocomplete="off" />
<script>var ctl00_ContentPlaceHolder1_ucDateBeginDate_txtDateTimePicker_obj=$("#ctl00_ContentPlaceHolder1_ucDateBeginDate_txtDateTimePicker").datetimepicker({ format: 'yyyy-mm-dd', minView: 2 ,isadmin:true,isEnd:0});</script>
                                        </div>
                                        <div class="form-group">
                                            <label for="sellshop6">&nbsp;&nbsp;至&nbsp;&nbsp;</label>
                                            <input name="ctl00$ContentPlaceHolder1$ucDateEndDate$txtDateTimePicker" type="text" id="ctl00_ContentPlaceHolder1_ucDateEndDate_txtDateTimePicker" class="form-control resetSize inputw150" autocomplete="off" />
<script>var ctl00_ContentPlaceHolder1_ucDateEndDate_txtDateTimePicker_obj=$("#ctl00_ContentPlaceHolder1_ucDateEndDate_txtDateTimePicker").datetimepicker({ format: 'yyyy-mm-dd', minView: 2 ,isadmin:true,isEnd:0});</script>
                                        </div>
                                    </div>
                                    <a href="javascript:void(0)" onclick="clearInput();">清除条件</a>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="form-group">
                <label for="inputEmail3" class="col-xs-2 control-label"></label>
                <div class="col-xs-10">
                    <button type="button" class="btn btn-primary" id="btnSend" >确定发送</button>
                </div>
            </div>
        </div>

        <div class="modal fade" role="dialog" aria-labelledby="mySmallModalLabel" id="myModal">
            <div class="modal-dialog modal-sm">
                <div class="modal-content">
                    <div class="w-modalbox">
                        <h5 style="background: none; text-indent: 10px;">优惠券库存不足</h5>
                        <div class="titileBorderBox borderSolidB">
                            <div class="contentBox pl20 contentp">
                                <p>已选定<span id="pSelectCount1"></span>位待发放优惠券会员</p>
                                <p>优惠券库存<span id="pCouponCount1"></span>张</p>
                                <p> 优惠券库存不够，请修改发放范围或者选择新的优惠券</p>
                            </div>
                        </div>
                        <div class="y-ikown pt10 pb10">
                            <input type="submit"  value="关闭窗口"  class="btn btn-default inputw100" data-dismiss="modal">
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="modal fade" role="dialog" aria-labelledby="mySmallModalLabel" id="myModal1">
            <div class="modal-dialog modal-sm">
                <div class="modal-content">
                    <div class="w-modalbox">
                        <h5 style="background:none;text-indent:10px;">优惠券确认发放</h5>
                        <div class="titileBorderBox borderSolidB">
                            <div class="contentBox pl20 contentp">
                                <p>已选定<span id="pSelectCount"></span>位待发放优惠券会员</p>
                                <p>优惠券库存<span id="pCouponCount"></span>张</p>
                                <p>是否立即发放？</p> 
                            </div>
                        </div>
                        <div class="y-ikown pt10 pb10">
                            <input type="submit"  value="立即发放" id="btnSubmitSend" class="btn btn-success inputw100" data-dismiss="modal">
                            <input type="submit" value="关闭窗口"  class="btn btn-default inputw100" data-dismiss="modal">
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </form>

            </div>
        </div>
        <aside class="ui-sidebar sidebar" style="min-height: 533px;">
            <nav class="well" id="menu_left">
                <em class="glyphicon ico-youhuiquan"></em>
<span>优惠券</span>
<ul iid="yxi04">
<li><a href="/Admin/Promotion/CouponsList.aspx?bFininshed=false" title="优惠券列表">优惠券列表</a></li>
<li><a href="/Admin/Promotion/SetRegisterSendCoupon.aspx" title="会员注册送优惠券">会员注册送优惠券</a></li>
<li class=" active"><a href="/Admin/Promotion/SendCouponByManager.aspx" title="优惠券手动发放">优惠券手动发放</a></li>
</ul>
<em class="glyphicon ico-chuoxiao"></em>
<span>促销活动</span>
<ul iid="yxi01">
<li><a href="/Admin/Promotion/ExChangeList.aspx" title="积分兑换">积分兑换</a></li>
<li><a href="/Admin/Promotion/PointToCash.aspx" title="积分抵现">积分抵现</a></li>
<li><a href="/Admin/Promotion/ShareActList.aspx" title="分享助力">分享助力</a></li>
<li><a href="/Admin/Promotion/ActivityList.aspx" title="满减活动">满减活动</a></li>
<li><a href="/Admin/Promotion/LimitedTimeDiscountList.aspx" title="限时折扣">限时折扣</a></li>
</ul>
<ul iid="yxi05">
<li><a href="/Admin/Oneyuan/OneyuanList.aspx" title="一元夺宝">一元夺宝</a></li>
<li><a href="/Admin/Oneyuan/RefoundList.aspx" title="活动退款">活动退款</a></li>
<li><a href="/Admin/Bargain/ManagerBargain.aspx?Type=0" title="好友砍价">好友砍价</a></li>
</ul>
<ul iid="yxi02">
<li><a href="/Admin/Promotion/voteList.aspx" title="投票调查">投票调查</a></li>
</ul>
<em class="glyphicon ico-youxi"></em>
<span>抽奖游戏</span>
<ul iid="yxi03">
<li><a href="/Admin/Promotion/GameLists.aspx" title="幸运大转盘">幸运大转盘</a></li>
<li><a href="/Admin/Promotion/GameEggLists.aspx" title="疯狂砸金蛋">疯狂砸金蛋</a></li>
<li><a href="/Admin/Promotion/GameXingYunLists.aspx" title="好运翻翻看">好运翻翻看</a></li>
<li><a href="/Admin/Promotion/GameDaFuWenLists.aspx" title="大富翁">大富翁</a></li>
<li><a href="/Admin/Promotion/GameGuaGuaLeLists.aspx" title="刮刮乐">刮刮乐</a></li>
<li><a href="/Admin/Promotion/PrizeList.aspx" title="奖品发货管理">奖品发货管理</a></li>
</ul>

            </nav>
        </aside>
    </div>
    <div class="mt20"></div>
</body>
</html>

